import App from './App'
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
import store from './store/vuex.js'
import CommonUtil from '@/utils/commonUtil.js';
import globalMixins from '@/utils/globalMixins.js';


Vue.use(uView)
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$Util = CommonUtil;
Vue.mixin(globalMixins)

// #ifdef MP-WEIXIN
 var API_PREFIX = {
	'release': 'https://ylxfdj.05info.cn',
	'trial': 'https://ylxfdj.05info.cn',
	'develop': 'https://ylxfdj.05info.cn'
 }[__wxConfig.envVersion];
// #endif

// #ifdef H5
 var API_PREFIX = window.$Config.API_PREFIX || location.origin;
// #endif

Vue.prototype.API_PREFIX = API_PREFIX;

const app = new Vue({
    ...App,
		store
})

app.$mount()
global.vueApp = app;